import bable from "rollup-plugin-babel";
import serve from "rollup-plugin-serve";

export default {
    input: "./src/index.js",
    output: {
        file: "dist/vue.js",
        format: "umd", // window 上 new Vue()
        name: "Vue",
        sourcemp: true, // 生成源码方便浏览器调试
    },
    plugins: [
        bable({
            exclude: 'node_modules/**'
        }),
        serve({
            port: 3000,
            contentBase: '', //''当前目录
            openPage: 'index.html'
        })
    ]
};
